:root {
  --primary-color: #171b4a;
  --secondary-color: #c4b49b;
  --bg-secondary-color: #f0f0f0;
}

* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  font-family: 'Noto Kufi Arabic', sans-serif;


}

a {
  text-decoration: none;

}
html {
    width: 100vw;
    overflow-x: hidden;
}
body {
  background: #fff;


}

/* styling navs */
nav {
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 0 50px;
  direction: rtl;
  box-shadow: 0px -27px 39px black;
  margin-bottom: 40px;
}

nav .logo {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  cursor: pointer;
}

nav .logo img {
  width: 270px;
}

@media (max-width:500px) {
  nav .logo img {
    width: 160px;
  }

}

nav .logo:hover {
  color: var(--primary-color);

}

nav .nav-items {
  display: flex;
  flex: 1;
  padding: 0 40px 0 0;
  opacity: 0.9;

}

nav .nav-items li {
  list-style: none;
  padding: 0 15px;
}

nav .nav-items li a {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

nav .nav-items li a:hover {
  opacity: 0.8;
  color: var(--secondary-color);
  transition: 0.4s;


}

nav form {
  display: flex;
  height: 40px;
  padding: 2px;
  background: #ffffff;
  min-width: 18% !important;
  border-radius: 2px;
  border: 1px solid rgb(255, 255, 255);
  justify-content: flex-end;

}

nav form .search-data {
  width: 50%;
  height: 100%;
  padding: 0 10px;
  color: var(--primary-color);
  font-size: 15px;
  border: none;
  background: none;
}

nav form.active .search-data {
  color: #fff;
}

nav form button {
  padding: 0 15px;
  color: #fff;
  font-size: 17px;
  background: var(--primary-color);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

nav form button:hover {
  background: var(--secondary-color);
  color: #fff;
  transition: 0.4s;

}

nav .menu-icon,
nav .cancel-icon,
nav .search-icon {
  width: 40px;
  text-align: center;
  margin: 0 50px;
  font-size: 10px;
  color: var(--primary-color);
  cursor: pointer;
  display: none;
  font-size: 13px;

}

nav .menu-icon span,
nav .cancel-icon,
nav .search-icon {
  display: none;
}

@media (max-width: 1245px) {
  nav {
    padding: 0 50px;
  }
}

@media (max-width: 1140px) {

  nav {
    padding: 0px;
  }

  nav .logo {
    flex: 2;
    text-align: center;
  }

  nav .nav-items {
    position: fixed;
    z-index: 99;
    top: 0;
    width: 100%;
    height: 100vh;
    left: -100%;
    padding: 10px 50px 0 50px;
    text-align: center;
    background: #fff;
    display: inline-block;
  }

  nav .nav-items.active {
    left: 0px;
    padding-top: 20%;
  }

  nav .nav-items li {
    line-height: 40px;
    margin: 30px 0;
  }

  nav .nav-items li a {
    font-size: 19px;
  }

  nav form {
    position: absolute;
    top: 80px;
    right: 50px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;

  }

  nav form.active {
    width: 100%;
    top: 175px;
    left: 0;
    opacity: 1;
    pointer-events: auto;
    direction: rtl;

  }

  nav form:before {
    position: absolute;
    content: "";
    top: -13px;
    left: 30px;
    width: 0;
    height: 0;
    z-index: -1;
    border: 10px solid transparent;
    border-bottom-color: #1e232b;
    margin: -20px 0 0;
  }

  nav form:after {
    position: absolute;
    content: '';
    height: 60px;
    padding: 2px;
    background: #1e232b;
    border-radius: 2px;
    min-width: calc(100% + 20px);
    z-index: -2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  nav .menu-icon {
    display: block;
  }

  nav .search-icon,
  nav .menu-icon span {
    display: block;
  }

  nav .menu-icon span.hide,
  nav .search-icon.hide {
    display: none;
  }

  nav .cancel-icon.show {
    display: block;
    z-index: 100;
  }

}

.space {
  margin: 10px 0;
}

nav .logo.space {
  color: var(--primary-color);
  padding: 0 5px 0 0;
}

@media (max-width: 980px) {

  nav .menu-icon,
  nav .cancel-icon,
  nav .search-icon {
    margin: 0 20px;
  }

  nav form {
    right: 30px;
  }
}

@media (max-width: 320px) {

  nav .menu-icon,
  nav .cancel-icon,
  nav .search-icon {
    margin: 0 10px;
    font-size: 8px;
  }

  nav .logo img {
    width: 125px;
  }
}

@media (max-width: 250px) {

  nav .menu-icon,
  nav .cancel-icon,
  nav .search-icon {
    margin: 0 4px;

    font-size: 6px;
  }

  nav .logo img {
    width: 100px;
  }
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.content header {
  font-size: 30px;
  font-weight: 700;
}

.content .text {
  font-size: 30px;
  font-weight: 700;
}

.content .space {
  margin: 10px 0;
}

/* styling socialmedia header */
.social-media-icons {
  display: flex;
  justify-content: left;
  align-items: center;
  padding-left: 35px;
  height: 60px;
}

.social-media-icons a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--secondary-color);
  text-align: center;
  line-height: 30px;
  padding: 0 7px;
}

header {
  background-color: var(--primary-color);
}

.social-media-icons i {
  font-size: 20px;

}




/* carouesel */
* {
  box-sizing: border-box;
}

.C-carousel {
  height: 100vh;
  overflow: hidden;
  position: relative;
  margin-top: -40px;
}

.C-track {
  opacity: 1;
  transition: all 400ms ease;

  &--reinit {
    opacity: 0;
    transition: all 0ms linear;
  }
}

.C-slide {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0d00ff2c no-repeat center / cover;
  background-blend-mode: overlay;
  font-family: arial;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow: hidden;

  .C-carousel.initialized & {
    /* border-radius: 100vw; */
    /* transform: scale(0.5) skew(-5deg) rotate(0); */
    transition: all 700ms ease;
    opacity: 0;

    &.active {
    opacity: 1;
      /* transform: scale(1) skew(0) rotate(0); */
      /* border-radius: 0; */
    }
  }


  /* @for $i from 1 through 5 {
      &:nth-child(#{$i}) {
        background-image: url(https://picsum.photos/1480/800?image=#{$i * 11});
      }
    } */

}

.C-carousel .C-slide:first-child {
  background-image: url(https://sais-dev.org/public/imgs/slide1.jpg);
}

.C-carousel .C-slide:nth-child(2) {
  background-image: url(https://sais-dev.org/public/imgs/slide2.jpg);
}

.C-carousel .C-slide:nth-child(3) {
  background-image: url(https://sais-dev.org/public/imgs/slide3.jpg);
}

.C-carousel .C-slide:nth-child(4) {
  background-image: url(https://sais-dev.org/public/imgs/slide4.jpg);
}

.C-carousel .C-slide:nth-child(5) {
  background-image: url(https://sais-dev.org/public/imgs/slide5.jpg);
}


.C-navigation {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  .C-carousel--vertical & {
    bottom: auto;
    left: auto;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
  }

  @media (max-width: 480px) {
    .C-carousel--horizontal & {
      bottom: 50px;
    }
  }
}

.C-navigation__dot {
  width: 12px;
  height: 12px;
  background: #fff;
  display: inline-block;
  margin: 4px;
  cursor: pointer;
  border-radius: 50%;

  &.active {
    background: lighten(blue, 10%);
    transform: scale(1.3);
  }
}

.C-carousel-navigation-button {
  position: absolute;
  top: 50%;
  left: 30px;
  z-index: 2;
  border: 2px solid #fff;
  box-shadow: none;
  border-radius: 5px;
  font-weight: bold;
  color: #fff;
  padding: 10px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 300mes ease;
  text-transform: capitalize;
}

.C-carousel-navigation-button--next {
  margin-top: 60px;
}

/* .C-carousel-navigation-button:hover {
  background: #eee;
  color: var(--secondary-color);
  transition: 0.5S;
} */


&:active {
  background: #fff;
}

&--next {
  left: auto;
  right: 10px;
}

.C-carousel--vertical & {
  bottom: 10px;
  top: auto;
  left: auto;
  right: 25px;
  transform: translateY(0);

  &--next {
    right: 20px;
  }

  &--prev {
    transform: translatex(calc(-100% - 5px));
  }
}



.C-slide-title {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  position: relative;
  transform: translateY(100%);
  opacity: 0;
  transition: all 300ms ease;
  transition-delay: 500ms;

  @media (min-width: 480px) {
    font-size: 2rem;
  }

  @media (min-width: 768px) {
    font-size: 42px;
  }

  .active & {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }

}

/* Pen controls */
.pen-controls {
  position: fixed;
  bottom: 10px;
  left: 10px;

  button {
    border: 2px solid var(--secondary-color);
    box-shadow: none;
    border-radius: 0;
    font-weight: bold;
    color: var(--secondary-color);
    padding: 10px;
    background: #fff;
    cursor: pointer;
  }
}

/* first section */
.firstSection {
  direction: rtl;

}

.firstSection .retro-layout-alt {
  flex-direction: row-reverse;
}

.read-more {
  border: none;
}

.read-more a {
  text-decoration: none !important;
}

.read-more:hover {
  text-decoration: none !important;
}

.read-more:hover::before {
  left: 10px;
  width: 11%;
  /* or 100px */

}

.read-more::before {
  content: "";
  position: absolute;
  bottom: 7px;
  height: 2px;
  border-bottom: 1px solid var(--secondary-color);
  width: 0%;
  left: 20px;
  transition: 0.2s;
}

/* secondary section */
.show-all {
  text-align: center;
  font-size: 25px;
  padding-top: 16px;
  font-weight: 600;
}

.show-all a {
  color: var(--primary-color);
  text-decoration: none;
  opacity: 0.8;

}

.show-all a:hover {

  opacity: 1;

}

.section2 {
  padding: 100px 0;
  position: relative;
  direction: rtl;
  background-color: var(--bg-secondary-color);
}



.section2 .section-title {
  color: var(--primary-color);
}

/* Blog 
---------------------*/
.blog-grid {
  margin-top: 15px;
  margin-bottom: 15px;
}

.blog-grid .blog-img {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 360px;
}

.blog-grid .blog-img img {
  position: absolute;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: 0.4s;



}

.blog-grid .blog-img img:hover {
  opacity: 1;
  transition: 1s;
}

.blog-grid .blog-img .date {
  position: absolute;
  background: #3a3973;
  color: #ffffff;
  padding: 8px 15px;
  left: 0;
  top: 10px;
  font-size: 14px;
  z-index: 1;

}

.blog-grid .blog-info {
  box-shadow: 0 0 30px rgba(31, 45, 61, 0.125);
  border-radius: 5px;
  background: #ffffff;
  padding: 20px;
  margin: -30px 20px 0;
  position: relative;
}

.blog-grid .blog-info h5 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
}

.blog-grid .blog-info h5 a {
  color: #3a3973;
}

.blog-grid .blog-info p {
  margin: 0;
}

.blog-grid .blog-info .btn-bar {
  margin-top: 20px;
}

.px-btn-arrow {
  line-height: 20px;
  position: relative;
  display: flex;
  justify-content: start;
  color: var(--primary-color);
  -moz-transition: ease all 0.3s;
  -o-transition: ease all 0.3s;
  -webkit-transition: ease all 0.3s;
  transition: ease all 0.3s;
  text-align: right;
}


.px-btn-arrow .arrow {
  width: 13px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 25px;
  -moz-transition: ease right 0.3s;
  -o-transition: ease right 0.3s;
  -webkit-transition: ease right 0.3s;
  transition: ease right 0.3s;
}

.px-btn-arrow .arrow:after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  display: inline-block;
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* third section */

.blog-home3 {
  font-family: "Montserrat", sans-serif;
  color: #8d97ad;
  font-weight: 300;
  text-align: right;
  margin-bottom: 0;

}

.blog-home3 .left-card p,
.blog-home3 .left-card h5 {
  padding: 10px;
}

.blog-home3 h1,
.blog-home3 h2,
.blog-home3 h3,
.blog-home3 h4,
.blog-home3 h5,
.blog-home3 h6 {
  color: #3e4555;
}

.blog-home3 h5 {
  line-height: 22px;
  font-size: 18px;

}

.blog-home3 h6 a,
.blog-home3 h5 a {
  margin-right: 8px;
}

.blog-home3 a.link {
  color: #3e4555;
}

.blog-home3 a.link:hover {
  color: #316ce8;
}

.blog-home3 .font-weight-medium {
  font-weight: 500;
}

.blog-home3 .bg-light {
  background-color: #f4f8fa !important;
}

.blog-home3 .subtitle {
  color: #8d97ad;
  line-height: 24px;
}

.blog-home3 .card.card-shadow {
  -webkit-box-shadow: 0px 0px 30px rgba(115, 128, 157, 0.1);
  box-shadow: 0px 0px 30px rgba(115, 128, 157, 0.1);
}

.blog-home3 .on-hover {
  -webkit-transition: 0.2s ease-in;
  -o-transition: 0.2s ease-in;
  transition: 0.2s ease-in;
}

.blog-home3 .on-hover:hover {
  -webkit-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  transform: translateY(-10px);
}

.blog-home3 .bg-success-gradiant {

  background: linear-gradient(to right, var(--secondary-color) 4%, var(--primary-color) 0%);

}

.blog-home3 .date-pos {
  font-size: 12px;
}

.blog-home3 a {
  overflow: hidden;
}

.blog-home3 a img {
  -webkit-transition: 0.2s ease-in;
  -o-transition: 0.2s ease-in;
  transition: 0.2s ease-in;
}

.blog-home3 a img:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}


/* contact us */
.contact-form-head {
  margin-bottom: 70px;
}

.contact-form-body {
  margin-bottom: 100px;
}

/* search result */
.search-section {
  text-align: right;
}

.search-result-categories>li>a {
  color: #b6b6b6;
  font-weight: 400
}

.search-result-categories>li>a:hover {
  background-color: #ddd;
  color: #555
}

.search-result-categories>li>a>.glyphicon {
  margin-right: 5px
}

.search-result-categories>li>a>.badge {
  float: right
}

.search-results-count {
  margin-top: 10px
}

.search-result-item {
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;

}

.search-result-item:after,
.search-result-item:before {
  content: " ";
  display: table
}

.search-result-item:after {
  clear: both
}

.search-result-item .image-link {
  display: block;
  overflow: hidden;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px
}

@media (min-width:768px) {
  .search-result-item .image-link {
    display: inline-block;
    margin: -20px 0 -20px -20px;
    float: left;
    width: 200px
  }
}

@media (max-width:767px) {
  .search-result-item .image-link {
    max-height: 200px
  }
}

.search-result-item .image {
  max-width: 100%
}

.search-result-item .info {
  margin-top: 2px;
  font-size: 12px;
  color: #999
}

.search-result-item .description {
  font-size: 13px
}

.search-result-item+.search-result-item {
  margin-top: 20px
}

@media (min-width:768px) {
  .search-result-item-body {
    margin-left: 200px
  }
}

.search-result-item-heading {
  font-weight: 400
}

.search-result-item-heading>a {
  color: #555
}

@media (min-width:768px) {
  .search-result-item-heading {
    margin: 0
  }
}

/* about-us */
.about-us-description {
  direction: rtl;
  padding: 20px;
}

.about-us-description h2 {
  color: var(--primary-color);
}

.about-us-header {
  background-color: var(--bg-secondary-color);
  padding: 30px;
  margin-top: -40px;
}

.about-us-description ol {
  padding-right: 20px;

}


/* Contact Information */
.contact-info {
  font-size: 18px;
  color: #333;
  text-align: center;
}

.contact-form-head {
  margin-top: 130px;

}

.contact-info i {
  margin-right: 10px;
  color: var(--secondary-color);
  font-size: 24px;
}

.contact-info p {
  margin-bottom: 0;
  display: inline-block;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dashed #007bff;
  transition: border-bottom 0.3s ease;
}

.contact-info a:hover {
  border-bottom: 1px solid #007bff;
}

/* footer */

footer ul {
  list-style-type: none;
}

/* container */



/*pagination*/
.page-numbers{
    DISPLAY: flex; list-style: none; gap: 16px; flex-direction: row-reverse; 
}

/*style table of content*/
#table-of-contents{
    color: black;
}
#table-of-contents a {
    text-decoration: none;
    color: black;
}
#table-of-contents a:hover{
    opacity: 0.8;
}

#table-of-contents ul{
    list-style: none;
}

#table-of-contents .panel-heading{
    padding-top: 11px;
}
#table-of-contents .panel-title{
    font-size: 24px;
    color:  #000;
}
#table-of-contents .panel-title:hover{
    cursor: pointer;
}
#table-of-contents .panel-default{
    background-color: #cccccd30;
    padding: 30px;
}